<? if(!defined('IN_FANWE')) exit('Access Denied'); 
0
|| checkTplRefresh('./tpl/huaban/page/u/u_follow.htm', './tpl/huaban/inc/pages.htm', 1357112216, './data/tpl/compiled/page_u_u_follow.tpl.php', './tpl/huaban', 'page/u/u_follow')
;?>
<?php 
$css_list[0]['url'][] = './tpl/css/tweetlist.css';
$css_list[0]['url'][] = './tpl/css/zone.css';
$js_list[0] = './tpl/js/zone.js';
 include template('inc/header'); ?><div id="body" class="fm960">
<div class="homews_bd clearfix">
<div id="content" class="fl" style="width:960px;"><? include template('inc/u/u_menu'); ?>            
            <div id="maincolumn">
<div id="friend">
<h1>我关注的</h1>
<div class="ftag">
<ul class="cf">
                        	<li><a href="<?php echo FU('u/friends',array("uid"=>$home_uid)); ?>">双向关注</a>
<li class="current"><a href="<?php echo FU('u/follow',array("uid"=>$home_uid)); ?>"><?=$_FANWE['home_user_names']['short']?>的关注<span class="num"><em><?=$home_user['follows']?></em></span></a></li>
<li><a href="<?php echo FU('u/fans',array("uid"=>$home_uid)); ?>"><?=$_FANWE['home_user_names']['short']?>的粉丝<span class="num"><em><?=$home_user['fans']?></em></span></a></li>
</ul>
</div>
<div id="follow_no_user" class="fr_nocontent_tips" style="display:none;">
你还没有关注任何人，<a href="/invite">去邀请站外好友</a>来共同管理吧
</div>
<ul class="friendlist" id="jquery-friendlist">
                    <? if(is_array($user_list)) { foreach($user_list as $follow_user) { ?><li class=" cf">
<? if($follow_user['share']) { ?>
                            <div class="friendimg">
                        <? if(is_array($follow_user['share'])) { foreach($follow_user['share'] as $share) { ?>                            	
                            	<a href="<?=$share['url']?>"><? if(is_array($share['img']['all'])) { foreach($share['img']['all'] as $img) { if($img['is_animate']) { ?>
<img src="<?=$img['img']?>" width="60" height="60">
<? } else { ?>
<img src="<?php echo getImgName($img['img'],60,60,1); ?>" width="60" height="60">
<? } } } ?></a> 
                                
                            <? } } ?>
                            </div>
                            <? } ?>
<div class="uhead"><a href="<?php echo FU('u/index',array("uid"=>$follow_user['uid'])); ?>"><img src="<?php echo avatar($follow_user['uid'],'m',1);?>" width="60" height="60"></a></div>
<div class="uinfo f14 gray">
                            	<a href="<?php echo FU('u/index',array("uid"=>$follow_user['uid'])); ?>" class="blue"><?=$follow_user['user_name']?></a>
<div style="padding-top:12px">
<a class="buttonfollow unfriend-follow png" onclick="$.User_Follow(<?=$follow_user['uid']?>,this,UpdateUserFollow)"  href="javascript:;">已关注</a>
</div>
</div>
</li>
                    <? } } ?>
</ul>
<div class="pagination"><? if($pager['page_count'] > 1) { ?>
<div class="pages">
<? if($pager['page'] > 1) { ?>
<a href="<?=$pager['page_prev']?>" class="page_prev" page="<?=$pager['prev_page']?>">&lt;上一页</a>
<? } if(is_array($pager['page_nums'])) { foreach($pager['page_nums'] as $page_num) { if($pager['page'] == $page_num['name']) { ?>
<a class="c"><?=$page_num['name']?></a>
<? } elseif($page_num['name'] == '...') { ?>
<i>...</i>
<? } else { ?>
<a href="<?=$page_num['url']?>" page="<?=$page_num['name']?>"><?=$page_num['name']?></a>
<? } } } if($pager['page'] < $pager['page_count']) { ?>
<a href="<?=$pager['page_next']?>" class="page_next" page="<?=$pager['next_page']?>">下一页&gt;</a>
<? } ?>
</div>
<? } ?></div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function MeUpdateUserFollow(obj,result)
{
$(obj).parents('.PEOPLE_ID_BOX').slideUp("slow");
}

function UpdateUserFollow(obj,result)
{
if(result.status == 1)
{

$(obj).removeClass("friend-follow").addClass("unfriend-follow").html("已关注");
}
else
{
$(obj).removeClass("unfriend-follow").addClass("friend-follow").html("关注");
}

}

function DeleteUserFans(obj,result)
{
var parent = $(obj).parent().parent();
if(result.status == 1)
{
$('.follow1',parent).hide();
$('.follow0',parent).show();
}
}
</script><? include template('inc/footer'); ?>